<!-- File: /app/View/Users/edit.ctp -->
<?php
	include("../../app/View/Parts/left.ctp");
?>
<div class="span9 well">
<fieldset>
<?php echo $this->Form->create('User');?>
	
			<legend><?php echo __('Profile'); ?></legend>
			<div class="input text required">
				<label for="ProfileName">Name</label>
				<input id="ProfileName" type="text" class="span8"  name="data[Profile][name]" value="<?php echo $data[0]['Profile']['name']; ?>">
			</div>
			<br>
			<div class="input text required">
				<label for="ProfileAddress">Address</label>
				<input id="ProfileAddress" type="text" class="span8" name="data[Profile][address]" value="<?php echo $data[0]['Profile']['address']; ?>">
			</div>
			<br>
			<div class="input text required">
				<label for="ProfileEmail">Email</label>
				<input id="ProfileEmail" type="text" class="span8" name="data[Profile][email]" value="<?php echo $data[0]['Profile']['email']; ?>">
			</div>
			<br>
			<div class="input text required">
				<label for="ProfilePhone">Phone</label>
				<input id="ProfilePhone" type="text" class="span8" name="data[Profile][phone]" value="<?php echo $data[0]['Profile']['phone']; ?>">
			</div>
			
				<input id="ProfilePhone" type="hidden" name="data[Profile][id]" value="<?php echo $data[0]['Profile']['id']; ?>">
			<br>
			<div class="input text required">
				<label for="UserUsername">Username</label>
				<input id="UserUsername" type="text" class="span8" name="data[User][username]" value="<?php echo $data[0]['User']['username']; ?>">
			</div>
			<br>
			<div class="input text required">
				<label for="UserPassword">Password</label>
				<input id="UserPassword" type="password" class="span8" name="data[User][password]">
			</div>
			<br>
			<div class="input text required">
				<label for="ConfirmPassword">ConfirmPassword</label>
				<input id="ConfirmPassword" type="password" class="span8" name="ConfirmPassword">
			</div>
			<div id="password_error"></div>
			<br>
			<div class="submit">
				<input type="submit" class="btn" value="Submit" onclick="return check_password()">
			</div>
		</form>

	</fieldset>
</div>
<div style="clear:both;"></div>